import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'


Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: "/home"

  },

  {
    path: '/home',
    name: 'home',
    component: HomeView
  },
  {
    path: '/centre',
    name: 'centre',
    component: () => import(/* webpackChunkName: "about" */ '../views/Centre.vue')
  }
  ,
  {
    path: '/order',
    name: 'order',
    component: () => import(/* webpackChunkName: "about" */ '../views/Order.vue')
  }
  ,
  {
    path: '/commodity',
    name: 'commodity',
    component: () => import(/* webpackChunkName: "about" */ '../views/Commodity.vue')
  }
  ,
  {
    path: '/exclusive',
    name: 'exclusive',
    component: () => import(/* webpackChunkName: "about" */ '../views/Exclusive.vue')
  }
]

const router = new VueRouter({
  routes
})

export default router
